package com.ruoyi.app.service;

import com.ruoyi.app.domain.AppGoodsOrders;
import com.ruoyi.app.domain.bo.AppGoodsOrdersData;
import com.ruoyi.app.domain.vo.AppGoodsOrdersVo;
import com.ruoyi.app.domain.bo.AppGoodsOrdersBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * APP商城订单Service接口
 *
 * @author heike
 * @date 2023-03-02
 */
public interface IAppGoodsOrdersService {

    /**
     * 查询APP商城订单
     */
    AppGoodsOrdersVo queryById(Long id);

    /**
     * 根据订单号查询订单
     */
    AppGoodsOrdersVo queryOrderNo(String orderNo);

    /**
     * 查询APP商城订单列表
     */
    TableDataInfo<AppGoodsOrdersVo> queryPageList(AppGoodsOrdersBo bo, PageQuery pageQuery);

    /**
     * 查询APP商城订单列表
     */
    List<AppGoodsOrdersVo> queryList(AppGoodsOrdersBo bo);

    /**
     * 新增APP商城订单
     */
    Boolean insertByBo(AppGoodsOrdersBo bo);

    /**
     * 修改APP商城订单
     */
    Boolean updateByBo(AppGoodsOrdersBo bo);

    /**
     * 修改APP商城订单
     */
    Boolean updateByVo(AppGoodsOrdersVo vo);

    /**
     * 校验并批量删除APP商城订单信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    AppGoodsOrdersBo createOrder(AppGoodsOrdersData data);

    Boolean cancelOrder(AppGoodsOrdersVo ordersVo);
}
